<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<!--用户管理-->
<div class="role-manage text-left">
	<div class="manage-bd row" style="margin-left:-6px; margin-right:-6px;">
		<%-- <div class="col-md-6 col-lg-3 manage">
			<div class="manage-item text-center">
				<p class="item-title"><input type="checkbox" /><i></i>用户管理${fn:length(role.roleSecurityList) }</p>
				<p class="text-left item-bd">
					<c:forEach items="${securitys }" var="security">
					<c:if test="${ security.fatherId == 1}">
						<span>
						<c:set var="isTrue" value="0"/>
						<c:forEach items="${role.roleSecurityList }" var="roleSecurity" varStatus="i">
							<c:if test="${roleSecurity.securityId==security.id }">
								<c:set var="isDoing" value="1"/>  
								<c:set var="isTrue" value="1"/>
							</c:if>
							<c:if test="${isDoing!=1}">  
						    </c:if>  
						    <c:if test="${i.last}">  
						        <c:set var="isDoing" value="0"/>  
						    </c:if>  
						</c:forEach>
						<input type="checkbox" name="userSelect"  value="${security.id }" ${isTrue==1 ? 'checked' : '' }/><i></i>${security.name }
						</span><br>
					</c:if>
				</c:forEach>
				</p>
			</div>
		</div> --%>
		<div class="col-md-6 col-lg-3 manage">
			<div class="manage-item text-center">
				<p class="item-title"><input type="checkbox" /><i></i>项目管理</p>
				<p class="text-left item-bd">
					<c:forEach items="${securitys }" var="security" varStatus="i">
					<c:if test="${ security.fatherId == 1}">
						<span>
						<c:set var="isTrue" value="0"/>
						<c:forEach items="${role.roleSecurityList }" var="roleSecurity" varStatus="i">
							<c:if test="${roleSecurity.securityId==security.id }">
								<c:set var="isTrue" value="1"/>
								<c:set var="isDoing" value="1"/>
							</c:if>
							 <c:if test="${isDoing!=1}">  
						    </c:if>  
						    <c:if test="${i.last}">  
						        <c:set var="isDoing" value="0"/>  
						    </c:if>
						</c:forEach>
						<input type="checkbox" name="proSelect" value="${security.id }" ${isTrue==1 ? 'checked' : '' }/><i></i>${security.name }
						</span><br>
					</c:if>
				</c:forEach>
				</p>
			</div>
		</div>
		<%-- <div class="col-md-6 col-lg-3 manage">
			<div class="manage-item text-center">
				<p class="item-title"><input type="checkbox" /><i></i>文件管理</p>
				<p class="text-left item-bd">
					<c:forEach items="${securitys }" var="security">
					<c:if test="${ security.fatherId == 3}">
						<span>
						<c:forEach items="${role.roleSecurityList }" var="roleSecurity" varStatus="i">
							<c:if test="${roleSecurity.securityId==security.id }">
								<c:set var="isTrue" value="1"/>
								<c:set var="isDoing" value="1"/>
							</c:if>
							 <c:if test="${isDoing!=1}">  
						    </c:if>  
						    <c:if test="${i.last}">  
						        <c:set var="isDoing" value="0"/>  
						    </c:if>
						</c:forEach>
						<input type="checkbox" name="fileSelect" value="${security.id }" ${isTrue==1 ? 'checked' : '' }/><i></i>${security.name }
						</span><br>
					</c:if>
				</c:forEach>
				</p>
			</div>
		</div> --%>
		<div class="col-md-6 col-lg-3 manage">
			<div class="manage-item text-center">
				<p class="item-title"><input type="checkbox" /><i></i>消息中心</p>
				<p class="text-left item-bd">
					<c:forEach items="${securitys }" var="security">
					<c:if test="${ security.fatherId == 2}">
						<span>
						<c:forEach items="${role.roleSecurityList }" var="roleSecurity" varStatus="i">
							<c:if test="${roleSecurity.securityId==security.id }">
								<c:set var="isTrue" value="1"/>
								<c:set var="isDoing" value="1"/>
							</c:if>
							 <c:if test="${isDoing!=1}">  
						    </c:if>  
						    <c:if test="${i.last}">  
						        <c:set var="isDoing" value="0"/>  
						    </c:if>
						</c:forEach>
						<input type="checkbox" name="msgSelect" value="${security.id }" ${isTrue==1 ? 'checked' : '' }/><i></i>${security.name }
						</span><br>
					</c:if>
				</c:forEach>
				</p>
			</div>
		</div>
	</div>
</div>

<!--button group-->
<div class="button-group text-right">
	<button type="button" class="btn btn-cancel">取消</button>
	<button type="button" class="btn btn-confirm" id="roleSumbit">确认</button>
</div>